﻿using AutoMapper;
using BCDto.Sim.Company.Company;
using BCEntity.Sim.Company.Company;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.Sim.Company.Company
{
    public class CompanyProfile : Profile
    {
        public CompanyProfile()
        {
            CreateMap<CompanyEntity, CompanyDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<CompanyDto, CompanyEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<CompanyRequestDto, CompanyPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<CompanyRequestDto, CompanyEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<CompanyPutDto, CompanyEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
